import request from 'utils/request.js'

export function getArticle(params) {
  return request({
    url: '/forum/getForum',
    method: 'post',
    data: params
  })
}

export function getIntroList(params) {
  return request({
    url: '/intro/getIntroList',
    method: 'post',
    data: params
  })
}
// 添加喜爱
export function addFavor(params) {
  return request({
    url: '/forum/addFavor',
    method: 'post',
    data: params
  })
}

// 移除喜爱
export function removeFavor(params) {
  return request({
    url: '/forum/removeFavor',
    method: 'post',
    data: params
  })
}
